package com.hd.hdxgddcommon.utils;

/**
 * Created by Administrator on 2017/10/17.
 */
public class ReflectBase {

    protected final String GET = "get";

    protected final String SET = "set";

    protected String fieldNameToMethodName(String prefixMethod, String fieldName) {
        StringBuilder methodName = new StringBuilder(prefixMethod);
        //javabean 的规范
        String f = String.valueOf(fieldName.charAt(0));
        methodName.append(f.toUpperCase());
        methodName.append(fieldName.substring(1));
        return methodName.toString();
    }

}
